<?php

namespace Acme\DemoBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;

use Doctrine\ORM\Mapping as ORM;

/**
 * Acme\DemoBundle\Entity\TypesAnnuaires
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Acme\DemoBundle\Entity\TypesAnnuairesRepository")
 */
class TypesAnnuaires
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $libelle
     *
     * @ORM\Column(name="libelle", type="string", length=128)
     */
    private $libelle;

    /**
     * @var smallint $statut
     *
     * @ORM\Column(name="statut", type="smallint")
     */
    private $statut;
    
    /**
     * @ORM\OneToMany(targetEntity="Annuaires",mappedBy="typesAnnuaires")
     */
    protected $annuaires;
    
    public function __construct()
    {
        $this->annuaires = new ArrayCollection();
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set libelle
     *
     * @param string $libelle
     */
    public function setLibelle($libelle)
    {
        $this->libelle = $libelle;
    }

    /**
     * Get libelle
     *
     * @return string 
     */
    public function getLibelle()
    {
        return $this->libelle;
    }

    /**
     * Set statut
     *
     * @param smallint $statut
     */
    public function setStatut($statut)
    {
        $this->statut = $statut;
    }

    /**
     * Get statut
     *
     * @return smallint 
     */
    public function getStatut()
    {
        return $this->statut;
    }

    /**
     * Add annuaires
     *
     * @param Acme\DemoBundle\Entity\Annuaires $annuaires
     */
    public function addAnnuaires(\Acme\DemoBundle\Entity\Annuaires $annuaires)
    {
        $this->annuaires[] = $annuaires;
    }

    /**
     * Get annuaires
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getAnnuaires()
    {
        return $this->annuaires;
    }
}